package Controller;

import Pojo.Order;
import Pojo.Pay;
import Service.impl.OrderServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class ConfirmZbfCodeServlet extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doGet(request,response);
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("===========================================================");
        System.out.println("===========================================================");
        System.out.println("===========================================================");
        System.out.println("===========================================================");
        System.out.println("===========================================================");
        System.out.println("===========================================================");
        System.out.println("===========================================================");
        System.out.println("===========================================================");
        System.out.println("你好，我要开始查询订单支付结果了");
        String orderNumber = request.getParameter("orderNumber");
        System.out.println("---------------"+orderNumber);
        OrderServiceImpl orderService=new OrderServiceImpl();
        String s=orderService.QrStatusQuery(orderNumber);
        System.out.println("---------------------"+s);
        response.getWriter().print(s);
    }
}
